package com.xiaoihu.server.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Author: xiaoihu
 * @Description: websocket消息类
 * @Date Created in 2022-04-19 16:03
 * @Modified By:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ChatMsg {
    @ApiModelProperty(value = "发送者")
    private String from;

    @ApiModelProperty(value = "接收者")
    private String to;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "发送时间")
    private LocalDateTime date;

    @ApiModelProperty(value = "发送者昵称")
    private String fromNick;
}
